package com.dingding.web.coupon;

import java.util.List;

import com.dingding.common.core.beans.CouponStore;
import com.dingding.web.base.action.BaseAction;

/**
 * @ClassName: CouponStoreAction
 * @Description: 优惠券门店action
 * @author fengshuonan
 * @date 2016年2月23日 下午9:09:31
 * @version 叮叮搭车2.0
 */
@SuppressWarnings("serial")
public class CouponStoreAction extends BaseAction {

	/**
	 * @Title: getCouponList
	 * @Description: 获取优惠券列表
	 * @author fengshuonan
	 * @return String 
	 */
	public String getCouponList() {
		List<CouponStore> storeList = super.storeManagerService.getStoreList();

		String result = null;

		if (storeList != null && storeList.size() > 0) {
			result = super.generateResponseData(200, "success", storeList);
		} else {
			result = super.generateResponseData(201, "查询到门店列表为空", null);
		}

		super.write(result);

		return NONE;
	}

}
